<template>
  <div class="app-container">
    <select-area></select-area>
  </div>
</template>

<script>
/* eslint-disable comma-dangle,import/newline-after-import */
// eslint-disable-next-line semi
import selectArea from './components/selectArea';
export default {
  name: 'App',
  data() { //  父传子用自定义属性
    return {
      arr: [1, 2, 324, 3214, 3, 2, 2, 4, 34, 32, 4, 24, 32, 23, 4, 324, 32, 4, 24, 32, 154, 32, 5,
        435, 34, 5, 3454, 534, 3, 5, 345, 43, 5, 34, 5, 43],
    };
  },
  mounted() {
    this.$bus.$emit('area-data', this.arr);
  },
  components: { selectArea }, //  导入 注册 在哪个组件里 我就称为谁的子组件 (注册子组件标签)
};
</script>

<style>
  *{
    margin: 0;
    padding: 0;
  }
  .app-container{
    width: 100vw;
    height: 100vh;
  }
</style>
